home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Monster Media 1996 #14
/
Monster Media No. 14 (April 1996) (Monster Media, Inc.).ISO
/
pcboard
/
so_long.zip
/
SO-LONG.PPS
< prev
Wrap
Text File
|
1996-01-31
|
3KB
|
158 lines
;So-Long.ppe
;Version 1.0
;Francis "gorilla" Amato
;Fido: 1:2619/222
;Variables and such
integer count
string key, prompt, prompt2
prompt =" @X0FESC to stay on, ENTER to log-off immediately "
count = 1
;There are the following choices
;1) Press ESC to stay on-line
;2) Press Enter to leave immediately
;3) Do nothing and allow countdown and logoff
;Countine looping till COUNT=10
while (count < 10) do
key = inkey()
;If key = ENTER
if (key = chr(13)) goto tata
;If key = ESC
if (key = chr(27)) goto OK
:clear an area of the screen to display the countoff
ansipos 1,15
clreol
ansipos 1,16
clreol
ansipos 1,17
clreol
ansipos 1,18
clreol
ansipos 1,19
clreol
ansipos 1,19
clreol
ansipos 1,21
clreol
ansipos 1,22
clreol
ansipos 1, 20
clreol
ansipos 15,20
println "",prompt
;Where to go when the Count = X
if (count=1) gosub one
if (count=2) gosub two
if (count=3) gosub three
if (count=4) gosub four
if (count=5) gosub five
if (count=6) gosub six
if (count=7) gosub seven
;This is mildly interesting. After displaying the "7" number, it
;gives a PRESS ENTER TO CONTINUE prompt. The easist way to fix it was
;to stuff an enter command into the buffer. The "press to continue" prompt
;might be only on my system and not yours. U may need to remove or relocate
;the following command
command chr(13), false
if (count=8) gosub eight
if (count=9) gosub nine
;18 clockticks is about a second
delay 18
;Add 1 to the count
inc count
endwhile
;User is saying goodbye
:tata
hangup
;User has decided to stay on-line
:OK
kbdstuff "^K"
end
;Display the numbers
:one
ansipos 39,16
println "@X8A─╖"
ansipos 39,17
Println "@X8A ║"
ansipos 39,18
println "@X8A─╨─@X07"
return
:two
ansipos 39,16
println "@X8A───┐"
ansipos 39,17
println "@X8A╓──┘"
ansipos 39,18
println "@X8A╙───@X07"
return
:three
ansipos 39,16
println "@X8A╓──┐"
ansipos 39,17
println "@X8A ──┤"
ansipos 39,18
println "@X8A╙──┘@X07"
return
:four
ansipos 39,16
println "@X8A╥ ┬"
ansipos 39,17
println "@X8A╙──┤"
ansipos 39,18
println "@X8A ┴@X07"
return
:five
ansipos 39,16
println "@X8A╓───"
ansipos 39,17
println "@X8A╙──┐"
ansipos 39,18
println "@X8A───┘@X07"
return
:six
ansipos 39,16
println "@X8A╓──┐"
ansipos 39,17
println "@X8A╟──┐"
ansipos 39, 18
println "@X8A╙──┘@X07"
return
:seven
ansipos 39,16
println "@X8A╓──┐"
ansipos 39,17
println "@X8A │"
ansipos 39,18
println "@X8A ┴@X07"
return
:eight
ansipos 39,16
println "@X8A╓──┐"
ansipos 39,17
println "@X8A╟──┤"
ansipos 39,18
println "@X8A╙──┘@X07"
return
:nine
ansipos 39,16
println "@X8A╓──┐"
ansipos 39,17
println "@X8A╙──┤"
ansipos 39,18
println "@X8A╙──┘@X07"
return